# a='hello world'
# b='你好啊'
# # print('世界'+a,b)
#
# print(a,b,sep='\n')
# print(a,b,end='\n')
# print(a,b,end='+\n')
# print(a,b,end='-')
# print(a,b,end='*')



# age=int(input('请输入你的年龄：'))
# if age>=18:
#     print('你成年了！')
# else:
#     print('你还要等%d年后才成年！'%(18-age))

# age=ini(input('请输入你的年龄：'))
# if age > 18 and age <= 65:
#     print('处于法定工作年龄！')
# elif age > 65 and age < 80:
#     print('退休了！')
# elif age >= 80:
#     print('安享晚年吧！')
# else:
#     print('你还要等%d年后才成年！'%(18-age))


# name='jack'
# birthday=2000
# print(name+'今年%d岁'%(2021-birthday))
# print(f'{name}今年{2021-birthday}岁')


# age=int(input('请输入年龄：'))
# if age>=18 and age<=65:
#     print('上班。')
# elif age>=66 and age<=79:
#     print('享受国家福利。')
# elif age>=80:
#     print('安享晚年。')
# else:
#     print(f'你还要等{18-age}年后才能成年。')


# a=0
# for i in range(1,11):
#     a+=i
# print(a)

# phone = ["151,82516786", "158,12414746", "139,82514786", "158,82516786"]
# for i in phone:
#     a=i.replace(',','')
#     if len(a)==11:
#         print(a)

# a=['a','b','c','d','a']
# b=a.copy()
# a.append('kk')
# print(a)
# print(b)

# a=['a','b','c','d','a']
# a.pop(0)  # 去除对应下标的元素，括号里为下标，只能去一个
# print(a)
# a.remove('a')  # 去除列表中的元素，只能去除一个
# print(a)
# del a[2:]
# print(a)


# a=['a','b','c',[1,2]]
# b=a.copy()
# a[-1].append('kk')
# print(a)
# print(b)

# import copy
# a=['a','b','c',[1,2]]
# b=copy.copy(a)
# c=copy.deepcopy(a)
# a[-1].append('kk')
# print(a)
# print(b)
# print(c)

# a=[1,2,3, "a", "b",[ "a", "b",["a","b"]]]

# 如果是列表我再进入循环查找
# 如何判断是一个列表
# isinstance([1,2,3],list)
# b=0
# b+=a.count('a')
# for i in a:
#    if isinstance(i,list):
#        b += i.count('a')
#        for j in i:
#            if isinstance(j,list):
#                 b += j.count('a')
# print(b)

# 元祖
# 只有一个元素时加一个逗号,取值和列表一样，但是不能新增、修改和删除,除了列表元素

# a={'a':1,'b':2,'c':3}
#
# for k,v in a.items():
#     print(k)


